Hexo+diaspora+gittalk的Error:validation failed
十月 15, 2018
本文总阅读量次
url中文会被js转码,而github的issue其实是支持中文的,因此只需在diaspora.js中将
comment = $('#gitalk-container');
gitalk = new Gitalk({
clientID: comment.data('ci'),
clientSecret: comment.data('cs'),
repo: comment.data('r'),
owner: comment.data('o'),
admin: comment.data('a'),
id: location.pathname,
distractionFreeMode: comment.data('d')
中的location.pathname 改成 decodeURI(window.location.pathname)
查看评论